package com.wx_shop.admin.domain.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperProProduct implements Serializable {
    private Integer id;

    /**
     * 标题
     */
    private String title;

    private String picture;

    /**
     * 价格
     */
    private String price;

    /**
     * 折扣
     */
    private Float discount;

    /**
     * 库存表
     */
    private Integer num;

    /**
     * 内容简介
     */
    private String description;

    /**
     * 1显示，2不显示
     */
    private Integer status;

    /**
     * 销量
     */
    private Integer sales;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    /**
     * 价格
     */
    public String getPrice() {
        return price;
    }

    /**
     * 价格
     */
    public void setPrice(String price) {
        this.price = price;
    }

    /**
     * 折扣
     */
    public Float getDiscount() {
        return discount;
    }

    /**
     * 折扣
     */
    public void setDiscount(Float discount) {
        this.discount = discount;
    }

    /**
     * 库存表
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 库存表
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 内容简介
     */
    public String getDescription() {
        return description;
    }

    /**
     * 内容简介
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 1显示，2不显示
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 1显示，2不显示
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 销量
     */
    public Integer getSales() {
        return sales;
    }

    /**
     * 销量
     */
    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", picture=").append(picture);
        sb.append(", price=").append(price);
        sb.append(", discount=").append(discount);
        sb.append(", num=").append(num);
        sb.append(", description=").append(description);
        sb.append(", status=").append(status);
        sb.append(", sales=").append(sales);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperProProduct other = (SuperProProduct) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getPicture() == null ? other.getPicture() == null : this.getPicture().equals(other.getPicture()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getDiscount() == null ? other.getDiscount() == null : this.getDiscount().equals(other.getDiscount()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getSales() == null ? other.getSales() == null : this.getSales().equals(other.getSales()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getPicture() == null) ? 0 : getPicture().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getDiscount() == null) ? 0 : getDiscount().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getSales() == null) ? 0 : getSales().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}